package com.imu.purse.modules.app.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.imu.core.base.BaseEntity;
import com.imu.common.validator.group.UpdateGroup;


/**
 * 用户登录记录
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-21 14:47:08
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_user_login")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class ImuUserLoginEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//用户编号
	@Column(name="user_id")
	private Long userId;
	
	//应用ID
	@Column(name="app_id")
	private String appId;
	
	//操作系统：枚举
	@Column(name="os")
	private String os;
	
	//操作系统版本
	@Column(name="os_ver")
	private String osVer;
	
	//设备名称
	@Column(name="dev_name")
	private String devName;
	
	//设备编号
	@Column(name="dev_code")
	private String devCode;
	
	//登录帐号
	@Column(name="account")
	private String account;
	
	//token
	@Column(name="token")
	private String token;
	
	//登录时间
	@Column(name="time_create")
	private Date timeCreate;
	

}
